import HTTP from '@/http'

export const commonRequest = (url: string, params: Record<string, any> = {}, type: 'post' | 'get' = 'get') => {
  return (HTTP as any)[`$${type}`](url, params)
}
